/* jshint esversion: 11 */

export function debounce(func,delay,_this,...argv){
    return function(...ev){
        let _id=Symbol.for("debounce_timeout");
        clearTimeout(func[_id]);
        func[_id]=setTimeout(func.bind(_this),delay,...argv,...ev);
    };
}